package com.nbjtjc.safe.qrCode;

import java.awt.image.BufferedImage;

/**
 * 接口设计
 * Created by qinhailong on 25/06/2017.
 */
public interface ImageDPIProcessor {

    /**
     * 根据文件后缀扩展名判断是否能进行处理
     *
     * @param fileName
     * @return
     */
    boolean canHandle(String fileName);

    /**
     *
     * @param srcimage
     * @param dpi
     * @return
     * @throws Exception
     */
    BufferedImage process(final BufferedImage srcimage, final int dpi) throws Exception;

}
